package org.example.kucun;

import org.example.dish_pojo.Inventory;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient(value = "kucuncaipin")
public interface CaipinFeign {

    @RequestMapping("kucun/findall")
    public String findall();

    @RequestMapping("kucun/findtype")
    public String findtype();


    @RequestMapping("kucun/addInventory")
    public String addInventory(@RequestBody Inventory inventory);

    @RequestMapping("kucun/updateInventory")
    public String updateInventory(@RequestBody Inventory inventory);

    @RequestMapping("kucun/deleteInventory")
    public String deleteInventory(@RequestParam("dishId") Integer dishId);



}
